import * as types from './types';

export const connectDev = devInfo => ({
  type: types.CONNECTDEV,
  payload: { devInfo },
});

export const disConnectDev = () => ({
  type: types.DISCONNECTDEV,
  payload: {},
});

export const updateAllData = allData => ({
  type: types.UPDATEALLDATA,
  payload: { allData },
});

// 修改KM显示
export const changeKM = kmStr => ({
  type: types.CHANGEKM,
  payload: { kmStr },
});


export const changeNAME = nameStr => ({
  type: types.CHANGENAME,
  payload: { nameStr },
});

export const changeHEAD = headStr => ({
  type: types.CHANGEHEAD,
  payload: { headStr },
});

export const changeHadUpdate = hadUpdate => ({
  type: types.CHANGEHADUPDATE,
  payload: { hadUpdate },
});